package com.firmail.exception.cloud;

import com.firmail.exception.type.cloud.CloudExceptionType;
import lombok.Setter;

@Setter
public class CloudServiceException extends RuntimeException {

    private Integer code;

    public CloudServiceException() {
    }

    public CloudServiceException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public CloudServiceException(CloudExceptionType cloudExceptionType) {
        super(cloudExceptionType.getMessage());
        this.code = cloudExceptionType.getCode();
    }


}
